package log

import (
	"context"

	"shenmawl/api/log/v1"
)

func (c *ControllerV1) OperLog(ctx context.Context, req *v1.OperLogReq) (res *v1.OperLogRes, err error) {
	logList, count, err := c.logs.GetOperLogList(ctx)
	return &v1.OperLogRes{
		Count: count,
		List:  logList,
	}, nil
}
